package com.pty.demo.behaviour.chain;

import java.math.BigDecimal;

/**
 * @author pengty
 * @date 2020/3/16
 */
public abstract class AbstractHandler {

    private AbstractHandler nextHandler;

    public AbstractHandler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(AbstractHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void handle(BigDecimal money);
}
